﻿using System;

namespace SharpCompress.Common
{
    public class CryptographicException : Exception
    {
        /// <summary>
        /// 异常类型（1请输入密码，2密码错误）
        /// </summary>
        public int ExceptionType { get; set; } = 1;
        public CryptographicException(string message)
            : base(message)
        {
        }

        public CryptographicException(string message, int type)
            : base(message)
        {
            this.ExceptionType = type;
        }
    }
}